#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
//#define OFFSETOF(type,pos) ((size_t)&(((type*)0)->pos))
//struct student {
//	char c1;
//	int c2;
//	char c3;
//};
//
//
//
//int main() {
//
//	printf("%d\n", OFFSETOF(struct student, c1));
//	printf("%d\n", OFFSETOF(struct student, c2));
//	printf("%d\n", OFFSETOF(struct student, c3));
//
//	return 0;
//}


#define GETFUN(n) (((n&0x55555555)<<1)+((n&0xaaaaaaaa)>>1))

int main() {
	int n = 10;
	printf("%d", GETFUN(n));

	return 0;
}